package config

type Config struct {
	Server Server `mapstructure:"server" json:"server"`
	Mysql  Mysql  `mapstructure:"mysql" json:"mysql"`
	Jwt    Jwt    `mapstructure:"jwt" json:"jwt"`
}

type Server struct {
	Host string `mapstructure:"host" json:"host"`
	Port int    `mapstructure:"port" json:"port"`
}

type Mysql struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Dbname   string `mapstructure:"dbname" json:"dbname"`
	Username string `mapstructure:"username" json:"username"`
	Password string `mapstructure:"password" json:"password"`
}

type Jwt struct {
	Secret     string `mapstructure:"secret" json:"secret"`
	ExpireTime int64  `mapstructure:"expire_time" json:"expire_time"`
}
